﻿using A.M.ETO;
using A.M.Storage.I_Application;
using L.M.System.Domain.DTO;
using L.M.System.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace L.M.System.Application.IServices
{
    public interface ITable_of_unitsServices: IBaseServices<table_of_units,string>
    {

        /// <summary>
        /// 异步分页查询单位表
        /// </summary>
        /// <param name="pageSize">每页条数</param>
        /// <param name="pageIndex">当前也索引</param>
        /// <param name="tName">模糊查询</param>
        /// <returns>异步分页查询单位表</returns>
        Task<ApiReturn<PageETO<table_of_units>>> GetTable_of_unitsAsync(int pageSize, int pageIndex, string? tName);

        /// <summary>
        /// 单位添加
        /// </summary>
        /// <param name="unit_AddDTO">单位DTO</param>
        /// <returns>统一返回格式</returns>
        Task<ApiReturn<string>> Addtable_Of_Units(Unit_AddDTO unit_AddDTO);

        /// <summary>
        /// 修改单位名称
        /// </summary>
        /// <param name="unInforUpdDTO">修改的DTO</param>
        /// <returns>统一返回格式</returns>
        Task<ApiReturn<string>> UpdInforUnInfor(UnInforUpdDTO unInforUpdDTO);
    }
}
